package com.project.dao.sys;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.project.dao.BaseDao;
import com.project.entity.sys.SysConstant;

/**
 * SysConstantDao
 * @author z
 *
 */
@Repository
public class SysConstantDao extends BaseDao<SysConstant>{
	
	
	public void updateValueByCode(String code, String value) {
		Query query = this.getCurrentSession().createQuery("update SysConstant set value = ? where code = ?");
		query.setString(0, value);
		query.setString(1, code);
		query.executeUpdate();
	}
	
}
